package com.dzu.gulimall.cart.service;

import com.dzu.gulimall.cart.vo.Cart;
import com.dzu.gulimall.cart.vo.CartItem;

import java.util.List;

/**
 * @author ZhaoDong
 * @date 2022/7/2 13:39
 * @description gulimall
 */
public interface CartService {
    CartItem addToCart(Long skuId, Integer count);

    CartItem getCartItem(Long skuId);

    Cart getCart();

    void clearCart(String key);

    void checkCartItem(Long skuId, Integer check);

    List<CartItem> getUserCartItems();

}
